package com.lambda.swipeback;

import android.content.Context;
import android.content.SharedPreferences;

public class ToolsAj {
    private static final String TAG = "MicroMsg.MMApplicationContext";
    private static Context sContext = null;
    private static String dwi = "com.tencent.mm";

    public static void setContext(Context context) {
        sContext = context;
        dwi = context.getPackageName();
        ad.d(TAG, "setup application context for package: " + dwi);
    }

    public static Context getContext() {
        return sContext;
    }

    public static SharedPreferences epI() {
        if (sContext != null) {
            return sContext.getSharedPreferences(epH(), 0);
        }
        return null;
    }

    public static String epH() {
        return dwi + "_preferences";
    }
}
